package com.battle.service.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/11/13 17:37
 */
@Data
@Configuration
public class HttpConfig implements InitializingBean {

    @Value("${out.httpUrl}")
    private String httpUrl;

    public static String HttpURL;

    @Override
    public void afterPropertiesSet() throws Exception {
        HttpURL=httpUrl;
    }
}
